﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Showresult.aspx.cs" Inherits="Showresult" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
		<title>信息学院05级信息专业学生业余生活调查</title>
	    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	    <style type="text/css">
            body {
	            background-color: ;
            }
            .STYLE1 {
	            font-family: "Times New Roman", Times, serif;
	            font-size: 12px;
            }
            .STYLE2 {color: #FFFFFF}
        </style>
	</head>
	<body>
	<center>
	<form id="Form1" method="post" runat="server">
	   <table width="768" border="0" cellpadding="0" cellspacing="0" bgcolor="#F3F3F7">
          <tr>
	        <td align="center" valign="middle" style="width: 762px; height: 60px;" >
	                    <table id="text" width="762px" border="0" cellspacing="0" cellpadding="0">
	                      <tr bgcolor="#666666">
		                    <td bgcolor="#ccff66" bordercolor="#CCFF66" style="height: 60px; width: 695px;">
                                <strong><span style="font-size: 16pt; font-family: 楷体_GB2312">信息部员工业余生活调查</span></strong></td>
	                      </tr>
	                      <tr>
		                    <td style="width: 695px; height: 100px;" colspan="">
		   
                                <p style="text-align: left">
                                    <span style="font-family: 楷体_GB2312">页面导航:<a href="vote.aspx">首页</a>|<a href="showResult.aspx">查看调查结果</a>|<a href="showDetailResult.aspx">查看投票记录</a>
                                    </span>
                                </p>
                            </td>
	                      </tr>
	                      <tr bgcolor="#666666">
		                    <td bgcolor="#ccff66" bordercolor="#CCFF66" style="height: 25px; width: 695px;text-align: left;">&nbsp;&nbsp;&nbsp;
	                      </tr>
	                      <tr>
		                    <td bordercolor="#CCFF66" style="height: 25px; width: 695px;text-align: left;">&nbsp;&nbsp;&nbsp;
                                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="userID"
                                    DataSourceID="SqlDataSource1" Height="125px" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
                                    Width="800px">
                                    <Columns>
                                        <asp:BoundField DataField="userName" HeaderText="姓名" SortExpression="userName" />
                                        <asp:BoundField DataField="voteID1" HeaderText="第一题得分" SortExpression="voteID1" />
                                        <asp:BoundField DataField="voteID2" HeaderText="第二题得分" SortExpression="voteID2" />
                                        <asp:BoundField DataField="voteID3" HeaderText="第三题得分" SortExpression="voteID3" />
                                        <asp:BoundField DataField="voteID4" HeaderText="第四题得分" SortExpression="voteID4" />
                                        <asp:BoundField DataField="voteID5" HeaderText="第五题得分" SortExpression="voteID5" />
                                        <asp:BoundField DataField="voteID6" HeaderText="第六题得分" SortExpression="voteID6" />
                                        <asp:BoundField DataField="voteID7" HeaderText="第七题得分" SortExpression="voteID7" />
                                        <asp:BoundField DataField="voteID8" HeaderText="第八题得分" SortExpression="voteID8" />
                                        <asp:BoundField DataField="voteID9" HeaderText="第九题得分" SortExpression="voteID9" />
                                        <asp:BoundField DataField="voteID10" HeaderText="第十题得分" SortExpression="voteID10" />
                                        <asp:BoundField DataField="voteSum" HeaderText="总分" SortExpression="voteSum" />
                                        <asp:BoundField DataField="voteAvg" HeaderText="平均每题得分" SortExpression="voteAvg" />
                                    </Columns>
                                </asp:GridView>
                                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:diaochaConnectionString %>"
                                    SelectCommand="SELECT [userID], [userName], [voteID1], [voteID2], [voteID3], [voteID4], [voteID5], [voteID6], [voteID7], [voteID8], [voteID9], [voteID10], [voteSum], [voteAvg] FROM [userMark]">
                                </asp:SqlDataSource>
	                      </tr>
	                      
	                      <tr>
		                    <td bgcolor="#ccff66" bordercolor="#CCFF66" style="height: 49px; width: 695px;">
                                <asp:Button ID="back" runat="server" PostBackUrl="~/login.aspx" Text="返回登录" />
                                <asp:Button ID="close1" runat="server" OnClick="close1_Click" Text="关闭" /></td>
	                       </tr>
                      </table>
			</td>
          </tr>
	      <tr>
	        <td height="50" align="left" valign="middle" style="width: 762px" >
			<center>
				<div class="STYLE1" id="copyright">----- copyright © All Rights Reserved. 杨楠 版权所有 -----</div>
			</center>	
			</td>
          </tr>
          </table>
	</form>
	</center>
	</body>
</html>
